import request from '@/utils/request'

export const getApplyList = (userId) => {
    return request.get(`/userApply/getApplyList/${userId}`)
}

export const applyFriend = (data) => {
    return request.post('/userApply/applyFriend', data)
}

export const getApplyCount = (userId) => {
    return request.get(`/userApply/getApplyListCount/${userId}`)
}

export const getNewFriend = (userId) => {
    return request.get(`/userApply/getNewFriendList/${userId}`)
}

export const getContactList = (userId) => {
    return request.get(`/userFriend/getContactList/${userId}`)
}

export const agreeAddFried = (applyId) => {
    const data = {
        id: applyId
    }
    return request.post('/userApply/agreeAddFried', data)
}